#include "StdAfx.h"
//#include "Packet32.h"
#include "pcap.h"
#include "Packet32.h"
#define MAXDEVICENUM 10
class CPacket
{

public:
	CPacket();
	virtual ~CPacket();

	
	pcap_if_t* findAllDevice();
	pcap_t* OpenDevice(char* name);
	BOOL _SendPacket(pcap_t* selectedDevs, UCHAR* SendBuffer);
	BOOL _ReceivePacket(pcap_t* selectedDevs, pcap_pkthdr* hdr, const u_char* ReceiveBuffer);
	BOOL GetMacAddress(char* driverName,UCHAR* buffer);
};